/**
* COPYRIGHT. whx. ALL RIGHTS RESERVED.
* Project: just-core
* Author: whx <harrywu304@gmail.com>
* Create On: Mar 6, 2012 2:59:28 PM
*/

package org.justframework.api.connector;

import org.justframework.api.dispatcher.DispatcherFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * VM connector is for process internal invoking
 */
public class VMClient extends BaseClient {
	
	/**
	 * logger
	 */
	private static Logger logger = LoggerFactory.getLogger(VMClient.class);


	/* (non-Javadoc)
	 * @see org.justframework.api.connector.BaseClient#doRpc(org.justframework.api.connector.Request)
	 */
	@Override
	public Response doRpc(Request request) {
		//dispatch request
		Response response = new Response();
		DispatcherFactory.getDefaultDispatcher().dispatch(request, response, null);
		return response;
	}

}
